﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ScriptCreated.aspx.cs" Inherits="WMS6.Web.Administration.ScriptCreated" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>ScriptCreated</title>
  <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>
    <script src="../Js/util.js" id="js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>    
    <script src="../Js/checkbox.js" type="text/javascript"></script>
    <script type="text/javascript">
        //初始化页面
        window.onload = function(){
            initListPage();
        }
        
       function CreatedScript(obj,url)
       {
         if(obj.checked)
        {
          document.getElementById('iframes').src=url;
          obj.checked=false;
        } 
         //
       }
    </script>
</head>
<body>
    <form id="F2122" runat="server">
    <div>
        
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        
        <div id="div_List_top">
            <table>
                <tr>
                    <td valign="bottom"><asp:Label ID="lbScriptCreated" runat="server" CssClass="label_header" 
                            Text="系统脚本创建" meta:resourcekey="lblArea"></asp:Label></td>
                    <td><asp:Button ID="btnGoBack" runat="server" CssClass="button" Text="<%$Resources:ButtonResource,btnGoBack%>"  
                            onclick="btnGoBack_Click"   /></td>
                    <td><asp:Button ID="btnCreated" runat="server" CssClass="button" Text="生成脚本"  
                            onclick="btnCreated_Click"   /></td>
                   
                </tr>
            </table>
        </div>
        <div class="blank8">
        </div>
        
        
        <asp:UpdatePanel ID="up1" runat="server"><ContentTemplate>
        
        <div id="div_List">
        
        <div id="div_List_msg">
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message"></asp:Label>
        </div>
        
        <asp:GridView ID="gvScriptCreated" runat="server" CssClass="gridview" 
                  DataKeyNames="URL"  onrowdatabound="gvScriptCreated_RowDataBound" AutoGenerateColumns="False"   
                 >
                <FooterStyle CssClass="GridViewFooterStyle" />
                <RowStyle CssClass="GridViewRowStyle" />
                <HeaderStyle CssClass="GridViewHeaderStyle" />
                <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                <Columns>                    
                    <asp:BoundField HeaderText="序号" FooterText="序号" 
                        meta:resourcekey="BoundField"><ItemStyle CssClass="GridViewRowWidth_40" /></asp:BoundField>
                    <asp:TemplateField meta:resourcekey="TemplateField">
                        <HeaderTemplate>
                            <asp:CheckBox ID="CheckBox1"  runat="server"  meta:resourcekey="CheckBox1" /> 
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chbSelect" runat="server"  meta:resourcekey="chbSelect" />
                        </ItemTemplate>
                        <FooterTemplate>
                            <asp:CheckBox ID="CheckBox2" runat="server"  
                                meta:resourcekey="CheckBox2" /> 
                        </FooterTemplate>
                        <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40"/>
                        <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_40"/>
                    </asp:TemplateField>    
                    <asp:BoundField DataField="URL" HeaderText="页面路径" FooterText="页面路径" 
                        SortExpression="URL" ><ItemStyle CssClass="GridViewRowWidth_200" /></asp:BoundField>  
                </Columns>
        </asp:GridView>
        
        <iframe  id="iframes" src="" width="0px" height="0px"></iframe>
        </div>
      
        </ContentTemplate>
        </asp:UpdatePanel>
        
              
    </div>
    <input type="hidden" id="hdnFrom" runat="server" />
    <input type="hidden" id="hdnActionID" runat="server" />
    </form>
</body>
</html>
